<?php

class Index extends Action {
	/**
	 *
	 * @param IRequest $req
	 * @param Response $res
	 * @param Ioc	   $ioc
	 */
	public function exec($req, $res, $ioc) {
		$res->view = 'layoutView';
		$res->assign ( 'name', 'Leo Ning' );
		$res->title = 'hahaha';
		$res->setLayout ( 'test' );
	}	
}